def compute_cost(records):
    total=0.0
    for rec in records:
        total+=rec[1]*rec[2]
    return total